from pro_data import DataSets
import numpy as np

path_x = "data/data2_naca0012/dv.csv"
path_y = "data/data2_naca0012/fc.csv"

ds = DataSets(path_x=path_x,
              path_y=path_y,
              label_index=2)

x = ds.x
y = ds.y_ori

print(np.min(y))
print(np.max(y))
print(np.mean(y))
print(np.median(y))

# data_naca0012
# 升力系数
# 0.503243988412142
# 0.627012504980957
# 0.5612329861732458
# 0.5608948151647974

# 阻力系数
# 0.01071841899551847
# 0.024971145379045115
# 0.017909199639794295
# 0.01775902483559773

# 俯仰力矩系数
# -0.174854762335403
# -0.113656668108196
# -0.1426867067646046
# -0.142452379669277


# data2_naca0012
# 升力系数
# 0.5023468803925999
# 0.638700764334272
# 0.5611819440474476
# 0.560528502923544

# 阻力系数
# 0.01121459537216315
# 0.024551817939515646
# 0.017917608647089498
# 0.017827553667866945

# 俯仰力矩系数
# -0.18375461319035696
# -0.11225962823862899
# -0.14268405154095154
# -0.14245757385595798
